package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Arrays;

/**
 * 复合注解：
 *          @SpringBootConfiguration
 *
 * 			@EnableAutoConfiguration
 */
@SpringBootApplication
public class SpringbootDemo07Application {

	/**
	 *
	 * @param args
	 */
	public static void main(String[] args) {
		/**
		 * 1.当前类的Class对象
		 * 		为了让springboot低多层解析@SpringBootApplication
		 *
		 * 2.args：命令行启动时传入的参数，最终要给springboot
		 * 		java -jar xx.jar --server.port=8090 --
		 * 			--server.port=8090这个就是args
		 */
		System.out.println(Arrays.toString(args));
		SpringApplication.run(SpringbootDemo07Application.class, args);
	}

}
